/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.ruralLibrary.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.ruralLibrary.api.entity.BookUserEntity;
import com.pig4cloud.pigx.ruralLibrary.api.dto.BookUserVo;
import com.pig4cloud.pigx.ruralLibrary.api.dto.userVo;
import com.pig4cloud.pigx.ruralLibrary.api.vo.BookUserVO;
import org.springframework.validation.BindingResult;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 资源使用方
 *
 * @author pig
 * @date 2023-06-29 09:59:08
 */
public interface BookUserService extends IService<BookUserEntity> {

	R importUser(List<BookUserVo> excelVOList, BindingResult bindingResult);

	List<BookUserVo> export(userVo userVo);

	R remove(Long[] ids);

	R saveUser(BookUserEntity bookUser);
	R saveUserR(BookUserVO bookUser);

	R update( userVo bookUser);

	void getFile(String bucket, String fileName, HttpServletResponse response);

	R getUser(Page page, userVo userVo);

	R getOne(Long id);

	R login(String userName,String userCode);
}
